<template>
  <div class="login-phone">
    <el-form label-width="60px">
      <!-- 缺少表单检验 -->
      <el-form-item label="手机号" prop="phone" :v-model="phone">
        <el-input v-model="phone.number" class="phone_input" />
        <!-- 缺少方法 -->
        <el-button type="primary" class="phone_btn">Submit</el-button>
      </el-form-item>
      <el-form-item label="验证码" prop="sms">
        <el-input v-model="phone.password" class="phone_input" />
      </el-form-item>
    </el-form>
  </div>
</template>

<script lang="ts">
import { defineComponent, reactive } from "vue";
import { rules } from "../config/account-config";
export default defineComponent({
  setup() {
    const phone = reactive({
      number: "",
      password: ""
    });
    // 触发电话函数
    // const submitForm = () => {};
    return {
      phone
    };
  }
});
</script>

<style scoped lang="less">
.el-form-item__content {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  flex: 1;
  /* margin-left: 5px; */
  line-height: 32px;
  position: relative;
  font-size: var(--font-size);
  min-width: 0;
}
.phone_btn {
  width: 60px;
  padding-left: 10px;
  margin-left: 5px;
}
.phone_input {
  width: 170px;
}
</style>
